# -*- coding: utf-8 -*-
"""
 @Time    : 2021/1/14 下午5:49
 @Author  : tgy

 defaultdict: key不存在，创建key对应的集合
"""
from collections import defaultdict

def test01():
    ...
    persons = defaultdict(list)
    persons['1'].append('1')
    persons['1'].append('2')
    print(persons)


if __name__ == '__main__':
    ...
    test01()
